package edu.gdit.health.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import edu.gdit.health.base.Results;
import edu.gdit.health.model.SysUser;
import edu.gdit.health.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@RequestMapping("user")
@Api(value = "测试接口", tags = "用户管理相关的接口", description = "用户测试接口")
public class SysUserController {
	@Autowired
	private SysUserService sysUserService;
	 @ApiOperation(value = "显示用户数据", notes = "显示用户数据")
	@RequestMapping("list")
	@ResponseBody
	public Results<SysUser> list(){
	    return sysUserService.getAllUsers();
	}
}
